package com.mastercard.assets.web.struts.forms ;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

import com.mastercard.assets.MasterCardException;
import com.mastercard.assets.jpa.TblCategoria;
import com.mastercard.assets.jpa.TblSubcateg;
import com.mastercard.assets.jpa.TblUsuario;
import com.mastercard.assets.util.MCUtil;
import com.mastercard.assets.util.dao.MasterCardDAO;
import com.mastercard.assets.web.util.to.FormaSalidaManager;
import com.mastercard.assets.web.util.to.UserLogin;

public class PreimplementacionEventoCancelarFlujoForm
	extends
		ActionForm
{
	private int cveFlujo ;

	public int getCveFlujo() {
		return cveFlujo;
	}

	public void setCveFlujo(int cveFlujo) {
		this.cveFlujo = cveFlujo;
	}

	public ActionErrors validate( ActionMapping mapping , HttpServletRequest request )
	{
		ActionErrors errors = new ActionErrors( ) ;
		
		System.out.println( "Formulario" ) ;
		
		if( cveFlujo < 1 )
			errors.add( "NoFlow" , new ActionMessage( "com.mastercard.assets.web.modules.preimplementation.alta.errors.NoFlow" ) ) ;
		
		return errors ;
	}

}
